*-------------------------------------------------
* The Role of Multilayered Peer Groups in Adolescent Depression: A Distributional Approach
* this file cleans inschool, inhome wave 1 and 2 data 
*-------------------------------------------------
set more off

* please specify your directory path here
global data_dir ""
global code_dir ""

cd ${data_dir}
use "${data_dir}/rawdata/inschool.dta", clear
	do "${code_dir}/process_inschool_data.do"
saveold "${data_dir}/processed/v_inschool.dta", replace version(12)

use "${data_dir}/rawdata/allwave1.dta", clear
	do "${code_dir}/process_wave1_data.do"
saveold "${data_dir}/processed/v_wave1.dta", replace version(12)

use "${data_dir}/rawdata/wave2.dta", clear
	do "${code_dir}/process_wave2_data.do"
saveold "${data_dir}/processed/v_wave2.dta", replace version(12)




